import request from "./request.js"

export const addTag = (form) => {
    return request({
        url: '/tags/add',
        method: 'post',
        data:{
            name: form.name
        },
        headers: {
            'Content-Type': 'application/json'
        },
    })
}

export const getAllTags = () => {
    return request({
        url: '/tags/all',
        method: 'get'  
    })
}